package com.health.service;

import com.health.pojo.domain.UserDO;
import com.health.pojo.dto.DoctorDTO;
import com.health.pojo.dto.PatientDTO;
import com.health.pojo.dto.UserDTO;
import com.health.pojo.dto.UserInformation;
import com.health.pojo.query.UserQuery;
import com.health.pojo.domain.DoctorDO;
import com.health.pojo.domain.PatientDO;

import java.lang.Boolean;
import java.lang.Integer;
import java.util.List;

public interface UserService {
    Integer registerUser(UserDTO userDTO);
    Boolean registerPatient(PatientDTO patientDTO);
    Boolean registerDoctor(DoctorDTO doctorDTO);
    String loginUser(UserDTO userDTO);
    Boolean logOff(String phone);
    Integer getUserOnlineStatus(Integer userId);
    Boolean deleteUser(UserDTO userDTO);
    List<PatientDO> queryPatientsByName(String name);
    List<DoctorDO> queryDoctorsByName(String name);
    Boolean updatePatient(PatientDTO patientDTO);
    Boolean updateDoctor(DoctorDTO doctorDTO);

    UserInformation selectUser(UserDTO userDTO);

    Boolean updateUser(UserDTO userDTO);


}
